<?php if($this->uri->segment(3)=='edit') : ?>
    <?php echo form_hidden('nisn',$_POST['nisn']) ?>
<?php else: ?>
    <?php echo form_input(array('name'=>'nisn','label'=>'NISN','size'=>'')) ?>
<?php endif ?>
<?php echo form_input(array('name'=>'nis','label'=>'NIS','size'=>'')) ?>
<?php echo form_input(array('name'=>'nama','label'=>'Nama Lengkap','size'=>'50')) ?>
<?php echo form_dropdown('jenis_kelamin_id',$this->referensi->get_list_referensi('jenis_kelamin','id','jenis_kelamin'),null,null,array('label'=>'Jenis Kelamin'))?>
<?php echo form_input(array('name'=>'tempat_lahir','label'=>'Tempat Lahir','size'=>'50')) ?>
<?php echo form_input(array('name'=>'tanggal_lahir','label'=>'Tanggal Lahir','size'=>'', 'class'=>'tanggal')) ?>
<?php echo form_dropdown('agama_id',$this->referensi->get_list_referensi('agama','id','agama'),null,null,array('label'=>'Agama'))?>
<?php echo form_dropdown('kewarganegaraan',array('WNI'=>'WNI','WNA'=>'WNA',),null,null,array('label'=>'Kewarganegaraan'))?>
<?php echo form_input(array('name'=>'anak_ke','label'=>'Anak Ke','size'=>'10','maxlength'=>'2')) ?>
<?php echo form_input(array('name'=>'jumlah_sdr','label'=>'Jumlah Saudara','size'=>'10','maxlength'=>'2')) ?>
<?php echo form_input(array('name'=>'alamat','label'=>'Alamat','size'=>'50')) ?>
<?php echo form_input(array('name'=>'kode_pos','label'=>'Kode Pos','size'=>'')) ?>
<?php echo form_input(array('name'=>'nomor_telepon','label'=>'Nomor Telepon','size'=>'15','maxlength'=>'15')) ?>
<?php echo form_input(array('name'=>'hp','label'=>'Handphone','size'=>'15','maxlength'=>'15')) ?>
<?php echo form_input(array('name'=>'email','label'=>'Email','size'=>'')) ?>
<?php echo form_input(array('name'=>'foto','label'=>'Foto','size'=>'','type'=>'file')) ?>
<?php echo form_dropdown('angkatan_id',$this->referensi->get_list_referensi('angkatan','id','angkatan'),null,null,array('label'=>'Angkatan'))?>